package com.icloud.article.boot.query;

import com.icloud.common.core.constant.ValidateConstant;
import com.icloud.common.web.dto.CommonPageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.icloud.common.database.enums.DiscussSortEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("评论查询参数")
@Data
public class DiscussQuery extends CommonPageDto {
    @ApiModelProperty("帖子id")
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long articleId;


    /**
     * @see DiscussSortEnum
     */
    @ApiModelProperty("排序方式,按时间-TIME 按热度-HEAT")
    @NotEmpty(message = ValidateConstant.NOT_EMPTY)
    private String sort;
}
